import 'package:flutter/material.dart';
import 'package:responsive_builder/responsive_builder.dart';

class HomePage extends StatefulWidget {
  final String title;
  HomePage({Key key,@required this.title}) : super(key: key);

  @override
  _HomePageState createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return ResponsiveBuilder(
      builder: (context, size){
        if(size.refinedSize == RefinedSize.large){
          return Text('large');
        }else if(size.refinedSize == RefinedSize.extraLarge){
          return Text('extraLarge');
        }else if(size.refinedSize == RefinedSize.small){
          return Text('small');
        }else if(size.refinedSize == RefinedSize.large){
          return Text('large');
        }
        return Text('1111');
      }
    );
  }
}